import request from '@/plugins/request';

export const getDeviceInfoList = (data) => {
  return request({
    url: '/deviceInfo/find',
    method: 'post',
    data
  })
}

export const createDeviceInfo = (data) => {
  return request({
    url: '/deviceInfo/batchCreate',
    method: 'post',
    data
  })
}

export const updateDeviceInfo = (data) => {
  return request({
    url: '/deviceInfo/update',
    method: 'post',
    data
  })
}

export const getResDeviceList = (data) => {
  return request({
    url: '/resDevice/find',
    method: 'post',
    data
  })
}

export const getSignalList = (data) => {
  return request({
    url: '/deviceSignal/findByDeviceId',
    method: 'post',
    data
  })
}

export const getSignalDataList = (data) => {
  return request({
    url: '/deviceSignal/dataList',
    method: 'post',
    data
  })
}

export const deleteSignal= (data) => {
  return request({
    url: '/deviceSignal/delete',
    method: 'post',
    data
  })
}
